package com.example.fastdfsweb.service;

import com.example.fastdfsweb.model.CreditorInfo;
import org.springframework.stereotype.Service;

import java.util.List;


public interface CreditorInfoService {
    /**
     * 获取所有债权信息
     * @return
     */
    List<CreditorInfo> getAllCreditorInfo();
    /**
     * 更新债权信息
     * @param creditorInfo
     * @return
     */
    int updateCreditorInfo(CreditorInfo creditorInfo);

    /**
     * 根据合同id获取债权信息
     * @param id
     * @return
     */
    CreditorInfo getCreditorInfoById(Integer id);
    /**
     * 删除合同
     * @param id
     * @return
     */
    int deleteContract(Integer id);
}
